<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>j鼠标经过，图片放大效果--www.crazyfrom.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="javascripts/jquery-1.4.4.js"></script>
<style type="text/css">
#tip   {position:absolute;color:#333;display:none;}
#tip s   {position:absolute;top:40px;left:-20px;display:block;width:0px;height:0px;font-size:0px;line-height:0px;border-color:transparent #BBA transparent transparent;border-style:dashed solid dashed dashed;border-width:10px;}
#tip s i   {position:absolute;top:-10px;left:-8px;display:block;width:0px;height:0px;font-size:0px;line-height:0px;border-color:transparent #fff transparent transparent;border-style:dashed solid dashed dashed;border-width:10px;}
#tip .t_box   {position:relative;background-color:#CCC;filter:alpha(opacity=50);-moz-opacity:0.5;bottom:-3px;right:-3px;}
#tip .t_box div  {position:relative;background-color:#FFF;border:1px solid #ACA899;background:#FFF;padding:1px;top:-3px;left:-3px;}
.tip   {width:82px;height:82px;border:1px solid #DDD;}
</style>
<script type="text/javascript">
$(function(){
   $('.tip').mouseover(function(){
      var $tip=$('<div id="tip"><div class="t_box"><div><s><i></i></s><img src="'+this.src+'" /></div></div></div>');
      $('body').append($tip);
      $('#tip').show('fast');
   }).mouseout(function(){
      $('#tip').remove();
   }).mousemove(function(e){
      $('#tip').css({"top":(e.pageY-60)+"px","left":(e.pageX+30)+"px"})
   })
})
</script>
</head>
</body>
<br>
如果不显示图片放大预览效果，请刷新页面。
<br>
<a href="＃" ><img class="tip" src="http://www.crazyfrom.com/demo/2010/12-4/01.jpg" /></a>
<a href="＃" ><img class="tip" src="http://www.crazyfrom.com/demo/2010/12-4/02.jpg" /></a>
<a href="＃" ><img class="tip" src="http://www.crazyfrom.com/demo/2010/12-4/03.jpg" /></a>
</body>
</html>